package com.wnxy.feign.stu.api.fallback;

import com.wnxy.common.model.Student;
import com.wnxy.feign.stu.api.StuApi;
import org.springframework.stereotype.Component;

/**
 * @author yellow Doctor
 * @date 2025-03-25
 * @desc 蜗牛创想：www.woniuxy.com
 */
@Component
public class StuApiFallBack implements StuApi {
    @Override
    public Student getStudentById(int id) {
        Student student = new Student();
        student.setName("我是失败后返回的结果...");
        student.setAge(30);
        return student;
    }

    @Override
    public void saveStudent(Student student) {

    }

    @Override
    public void updateStudent(Student student) {

    }
}
